package Mangos::DB::Characters::CharacterEquipmentsets;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'character_equipmentsets',

    columns => 
    [
        guid     => { type => 'integer', default => '0', not_null => 1 },
        setguid  => { type => 'bigint', not_null => 1 },
        setindex => { type => 'integer', default => '0', not_null => 1 },
        name     => { type => 'varchar', length => 100, not_null => 1 },
        iconname => { type => 'varchar', length => 100, not_null => 1 },
        item0    => { type => 'integer', default => '0', not_null => 1 },
        item1    => { type => 'integer', default => '0', not_null => 1 },
        item2    => { type => 'integer', default => '0', not_null => 1 },
        item3    => { type => 'integer', default => '0', not_null => 1 },
        item4    => { type => 'integer', default => '0', not_null => 1 },
        item5    => { type => 'integer', default => '0', not_null => 1 },
        item6    => { type => 'integer', default => '0', not_null => 1 },
        item7    => { type => 'integer', default => '0', not_null => 1 },
        item8    => { type => 'integer', default => '0', not_null => 1 },
        item9    => { type => 'integer', default => '0', not_null => 1 },
        item10   => { type => 'integer', default => '0', not_null => 1 },
        item11   => { type => 'integer', default => '0', not_null => 1 },
        item12   => { type => 'integer', default => '0', not_null => 1 },
        item13   => { type => 'integer', default => '0', not_null => 1 },
        item14   => { type => 'integer', default => '0', not_null => 1 },
        item15   => { type => 'integer', default => '0', not_null => 1 },
        item16   => { type => 'integer', default => '0', not_null => 1 },
        item17   => { type => 'integer', default => '0', not_null => 1 },
        item18   => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'setguid' ],

    unique_key => [ 'guid', 'setguid', 'setindex' ],
);

1;

package Mangos::DB::Characters::CharacterEquipmentsets::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::CharacterEquipmentsets' }

__PACKAGE__->make_manager_methods('character_equipmentsets');

1;
